package com.lokyiu.tutorial.java.exercise;

public class Student extends Class{
	private String name;
	private int studentCode,age;
	private char sex;
	
	public Student(int studentCode,String name,int age,char sex){
		super();
		this.studentCode=studentCode;
		this.name=name;
		this.age=age;
		this.sex=sex;
	}
	
	
	public String getName() {
		return name;
	}
	public int getStudentCode() {
		return studentCode;
	}
	public int getAge() {
		return age;
	}
	public char getSex() {
		return sex;
	}
	
	public void showInfo(){
		System.out.println(name + " is student of \"" + this.getSchoolName() + "\" student Number is #" + studentCode + " and study in " + this.getForm() + this.getClassNumber());
	}
	
}
